package groovy
def class queryclos{
    def completeOrder(amount,rate){
        if(rate.maximumNumberOfParameters==2){
            println("ttt")
        }
        for(ap in rate.parameterTypes){println("yyy"+ap.name)}
    }
}
def query=new queryclos()
query.completeOrder(10){amount,rate->amount*(rate/100)}
query.completeOrder(10){it*0.085}




